package cn.iocoder.yudao.module.yyzx.dal.mysql.nurse_content;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.yyzx.dal.dataobject.nurse_content.Nurse_contentDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.yyzx.controller.admin.nurse_content.vo.*;

/**
 * 护理内容 Mapper
 *
 * @author 超级管理员
 */
@Mapper
public interface Nurse_contentMapper extends BaseMapperX<Nurse_contentDO> {

    default PageResult<Nurse_contentDO> selectPage(Nurse_contentPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<Nurse_contentDO>()
                .likeIfPresent(Nurse_contentDO::getName, reqVO.getName())
                .eqIfPresent(Nurse_contentDO::getPrice, reqVO.getPrice())
                .eqIfPresent(Nurse_contentDO::getContent, reqVO.getContent())
                .eqIfPresent(Nurse_contentDO::getIsAdd, reqVO.getIsAdd())
                .eqIfPresent(Nurse_contentDO::getStatus, reqVO.getStatus())
                .eqIfPresent(Nurse_contentDO::getIdDeleted, reqVO.getIdDeleted())
                .betweenIfPresent(Nurse_contentDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(Nurse_contentDO::getId));
    }

}